// 自动生成模板PmsAttrGroup
package biz

import "github.com/go-kratos/kratos/v2/log"

// pmsAttrGroup表 结构体  PmsAttrGroup
type PmsAttrGroup struct {
	AttrGroupId   *int    `json:"attrGroupId" form:"attrGroupId" gorm:"primarykey;comment:分组id;column:attr_group_id;size:19;"` //分组id
	AttrGroupName *string `json:"attrGroupName" form:"attrGroupName" gorm:"comment:组名;column:attr_group_name;"`                //组名
	Sort          *int    `json:"sort" form:"sort" gorm:"comment:排序;column:sort;size:10;"`                                     //排序
	Descript      *string `json:"descript" form:"descript" gorm:"comment:描述;column:descript;size:255;"`                        //描述
	Icon          *string `json:"icon" form:"icon" gorm:"comment:组图标;column:icon;size:255;"`                                   //组图标
	CatelogId     *int    `json:"catelogId" form:"catelogId" gorm:"comment:所属分类id;column:catelog_id;size:19;"`                 //所属分类id
}

// TableName pmsAttrGroup表 PmsAttrGroup自定义表名 pms_attr_group
func (PmsAttrGroup) TableName() string {
	return "pms_attr_group"
}

type PmsAttrGroupRepo interface {
}

type PmsAttrGroupUsecase struct {
	repo PmsAttrGroupRepo
	log  *log.Helper
}

func NewPmsAttrGroupUsecase(repo GreeterRepo, logger log.Logger) *PmsAttrGroupUsecase {
	return &PmsAttrGroupUsecase{repo: repo, log: log.NewHelper(logger)}
}
